package cn.sun.product.service;

import cn.sun.basic.service.IBaseService;
import cn.sun.basic.util.PageBean;
import cn.sun.product.domain.Product;
import cn.sun.product.domain.ProductDetail;
import cn.sun.product.query.ProductQuery;

import java.util.List;

public interface IProductService extends IBaseService<Product, ProductQuery> {
    ProductDetail getDetailByProductId(Long productId);

    void bulkdel(List<Long> ids);

    void onOroff(List<Long> ids, int state);

    PageBean<Product> prefindPage(ProductQuery query);

    Product prefindOne(Long id);
}
